package base;

import java.util.logging.Logger;

/**
 * @author Yuang, Gongming
 * @date 2021-12-14 10:56
 */
public abstract class RunnableBase implements Runnable {

    @Override
    public void run() {
        try {

            execute();

        } catch (Exception error) {

            throw new RuntimeException(this.getClass().getSimpleName() + " exec run failed");

        }
    }

    public abstract void execute() throws Exception;

}
